package com.boot.unity.api.wx.controller;

import com.boot.unity.api.wx.service.WxHealthCheckService;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 体检信息
 */
@RestController
@RequestMapping("/wx/healthCheck")
@Validated
public class WxHealthCheckController {
    private final Log logger = LogFactory.getLog(WxHealthCheckController.class);

    @Autowired
    private WxHealthCheckService wxHealthCheckService;

    @GetMapping("queryAllKswd")
    public Object queryAllKswd(String subject){
       return wxHealthCheckService.queryAllKswd(subject);
    }


    @GetMapping("queryAllHospital")
    public Object queryAllHospital(){
        return wxHealthCheckService.queryAllHospital();
    }

    /**
     * 获取体检信息
     * @return
     */
    @GetMapping("info")
    public Object detail(String uid,String key) {
        return wxHealthCheckService.info(uid,key);

    }
}
